<?php include PATH_TPL."/admin/tpl.header.phtml"?>
<style>
.feedback{
    border:0;
    box-shadow:none;

}

</style>
<div class="main-container inner">
    <div class="main-content">
        <div class="container-fluid">
            <div class="row bt">
                <div class="col-lg-12 bg">
                    <ol class="breadcrumb">
                        <li class="active">
                            <i class="fa  fa-fw fa-reorder"></i>查看并处理问卷
                        </li>
                    </ol>
                </div>
            </div>
            <div id="page-wrapper">
                <div class="container-fluid col-md-7 col-sx-12">
                    <form action="/admin_wenjuan/edit" method="post" enctype="multipart/form-data">
                        <div class="form-group">


<!--<div class="row"><label>详情</label></div>                                   --> 
    <div class="form-group align-left">
        <label  class="red" for="dealName ">姓名</label><input type="text" readonly="readonly" class="form-control"  value="<?=$tRow['name']?>">
    </div>
    <div class="form-group align-left">
        <label  class="red" for="dealName ">职称</label><input type="text" readonly="readonly" class="form-control"  value="<?=$tRow['title']?>">
    </div>
    <div class="form-group align-left">
        <label  class="red" for="dealName ">职务</label><input type="text" readonly="readonly" class="form-control"  value="<?=$tRow['post']?>">
    </div>
    <div class="form-group align-left">
        <label  class="red" for="dealName ">工作单位</label><input type="text" readonly="readonly" class="form-control"  value="<?=$tRow['work']?>">
    </div>
    <div class="form-group align-left">
        <label  class="red" for="dealName ">电话</label><input type="text" readonly="readonly" class="form-control"  value="<?=$tRow['phone']?>">
    </div>
    <div class="form-group align-left">
        <label  class="red" for="dealName ">邮箱</label><input type="text" readonly="readonly" class="form-control"  value="<?=$tRow['email']?>">
    </div>
    <div class="form-group align-left">
        <label  class="red" for="dealName ">工作单位</label><input type="text" readonly="readonly" class="form-control"  value="<?=$tRow['address']?>">
    </div>

<div class="row align-left"><label >1、除本单位执业地点外，是否有其他执业地点</label></div>
                                    <div class="row">
<div class="col-sm-4"><input type="radio" <?=($tRow['file1']==1)?"checked":"" ?> disabled />是</div>
<div class="col-sm-4"><input type="radio"  <?=($tRow['file1']==2)?"checked":"" ?> disabled/>否</div></div>

                        </div>
                        <div class="form-group">                                
                                    <div class="row align-left"><label >2、是否愿意参加本公司的独立血液净化中心合作</label></div>
                                    <div class="row">
<div class="col-sm-4"><input type="radio" <?=($tRow['file2']==1)?"checked":"" ?> disabled />是</div>
<div class="col-sm-4"><input type="radio"  <?=($tRow['file2']==2)?"checked":"" ?> disabled/>否</div></div>

                        </div>
                        <div class="form-group">

                                    <div class="row align-left"><label >3、愿意与本公司哪种关系合作(多选)</label></div>
                                    <div class="row">
<div class="col-sm-4"><input type="radio" <?=(stripos($tRow['file3'],'1')+1)?"checked":"" ?> disabled />中心托管</div>
<div class="col-sm-4"><input type="radio"  <?=stripos($tRow['file3'],'2')?"checked":"" ?> disabled/>实地授课</div>
<div class="col-sm-4"><input type="radio" <?=stripos($tRow['file3'],'3')?"checked":"" ?> disabled />中心托管</div>
<div class="col-sm-4"><input type="radio"  <?=stripos($tRow['file3'],'4')?"checked":"" ?> disabled/>实地授课</div>
<div class="col-sm-4"><input type="radio" <?=stripos($tRow['file3'],'5')?"checked":"" ?> disabled />中心托管</div>
<div class="col-sm-4"><input type="radio"  <?=stripos($tRow['file3'],'6')?"checked":"" ?> disabled/>合作共建</div></div>
                        </div>
                        <div class="form-group">                                      

<? if($tRow['type']==2){ ?> 
                                <div class="row align-left"><label  >4、您所感兴趣的服务项目？(多选)</label></div>
                                <div class="row">
<div class="col-sm-4"><input type="radio" <?=(stripos($tRow['file4'],'1')+1)?"checked":"" ?> disabled />血透人才培训</div>
 <div class="col-sm-4"><input type="radio"  <?=stripos($tRow['file4'],'2')?"checked":"" ?> disabled/>血透室管理咨询服务</div>
 <div class="col-sm-4"><input type="radio" <?=stripos($tRow['file4'],'3')?"checked":"" ?> disabled />实现“一站式”多点执业</div>
 <div class="col-sm-4"><input type="radio"  <?=stripos($tRow['file4'],'4')?"checked":"" ?> disabled/>大数据研究平台</div>
 <div class="col-sm-4"><input type="radio" <?=stripos($tRow['file4'],'5')?"checked":"" ?> disabled />高峰专家论坛</div>
 <div class="col-sm-4"><input type="radio"  <?=stripos($tRow['file4'],'6')?"checked":"" ?> disabled/>医生个人平台打造</div></div>
                                    <? }?>
                        </div>
                        <div class="form-group">
<? if($tRow['type']==1){ ?> 
<label  for="feedback">反馈内容:</label>
<label id="feedback" class="form-control feedback" name="feedback" ><?=$tRow['feedback']?></label>
<? }?>
                        </div>
    <div class="form-group align-left">
        <label  class="red" for="dealName ">处理人姓名</label>        <input type="text" class="form-control" name="dealName" id="dealName" placeholder="请输入姓名" value="<?=$tRow['handle_name']?>">
    </div>
    <div class="form-group align-left">
        <label  class="red" for="dealStatus">处理状态&nbsp;&nbsp;&nbsp;</label>
        <input type="radio" name="dealStatus" checked="true" value="0"<?=empty($tRow['handle_status'])?'checked':''?>>未处理&nbsp;&nbsp;&nbsp;
        <input type="radio" name="dealStatus" value="1"<?=empty($tRow['handle_status'])?'':'checked'?>>已处理
    </div>
    <div class="form-group align-left">
        <label class="red" for="dealMsg">处理意见:</label>
        <textarea id="dealMsg" class="form-control" name="dealMsg" row="6" style="resize:none" placeholder="处理意见"><?=$tRow['handle_content']?></textarea>
    </div>


                       <input type='hidden' value='<?=$tId?>' name='id'/>
                        <button class="btn btn-primary demo_2" type="button" id="submit">修改</button>
                    </form>
                </div>
            </div>
        </div>
        <div class="subviews">
            <div class="subviews-container"></div>
        </div>
    </div>
    <!-- end: PAGE -->
</div>
<!-- end: MAIN CONTAINER -->
<script type="text/javascript" src="/plugins/jquery-ui-1.11.4/jquery-ui.min.js"></script>
<script type="text/javascript" src="/plugins/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="/plugins/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
$('.datetimeEnd').datetimepicker({
    language:  'zh-CN',
    weekStart: 1,
    todayBtn:  1,
    autoclose: 1,
    todayHighlight: 1,
    startView: 2,
    minView: 0,
    format:'yyyy-mm-dd hh:ii',
    pickerPosition: "top-right",
    forceParse: 0
});
</script>


<script>
$(function(){
    var options={
        beforeSubmit : showRequest,    // 提交前的回调函数
        success : showResponse,    // 提交后的回调函数
        dataType : "json",    // html（默认）、xml、script、json接受服务器端返回的类型
    }
    function showRequest(formData, jqForm, options){
        return true;
    }
    function showResponse(responseText,statusText){
            cg_alert_edit(responseText,'/admin_wenjuan','/admin_wenjuan/edit?id=<?=$tId?>');
    }
    $('#submit').click(function() {
        $('form').ajaxSubmit(options);
        return false;

    });
});

</script>
<?php include PATH_TPL."/admin/tpl.footer.phtml"?>
